﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="user_OrderList.aspx.cs" Inherits="UserCenter_user_OrderList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>订单列表</title>
    <style type="text/css">
        .style1
        {
            font-size: x-large;
            background-color:#33CCFF;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
      <div>
          <div style="margin:0 auto;height:30px; margin-top:30px; width:600px; text-align:center" 
              class="style1">订单</div>
          <div style="margin:0 auto; width:600px" >
            <asp:GridView ID="orderList" runat="server" Width="600px" 
                  AutoGenerateColumns="false" onrowcommand="orderList_RowCommand">
              <Columns>
                <asp:BoundField DataField="Ord_Idint" HeaderText ="订单号" />
                <asp:BoundField DataField="Ord_Datedate" HeaderText ="下单时间" />
                <asp:BoundField DataField="orderStates" HeaderText ="订单状态" />
                <asp:HyperLinkField HeaderText="详情" Text="查看"  DataNavigateUrlFields="Ord_Idint" DataNavigateUrlFormatString="user_OrderInfor.aspx?Ord_Idint={0}" Target="Right" />
                <asp:TemplateField HeaderText="删除" ItemStyle-HorizontalAlign="Center">
                  <ItemTemplate>
                    <asp:Button ID="deleteProduct" Text="删除" CommandName="deleteProduct" CommandArgument='<%# DataBinder.Eval(Container.DataItem,"Ord_Idint")  %>' runat="server" 
                     OnClientClick='<%#  "if (!confirm(\"你确定要删除吗?\")) return false;"%>' />
                  </ItemTemplate>
                </asp:TemplateField>
              </Columns>
            </asp:GridView>
          </div>
          <div style="text-align:center">
            <asp:Label id="lable1" Visible="false" Text="没有查到你的订单！" runat="server"></asp:Label>
            <hr />       
          </div>
      </div>
    </form>
</body>
</html>
